/*
** joinGame.h for join game in /home/taitai/rtyperoxxor/serveur
** 
** Made by yannis berrouag
** Login   <berrou_y@epitech.net>
** 
** Started on  Fri Jan 13 14:34:45 2012 yannis berrouag
** Last update Sat Jan 14 17:41:58 2012 yannis berrouag
*/


#ifndef _JOINGAME_H_
#define _JOINGAME_H_

#include "islotinterface.h"
#include "protocolNetwork.h"
#include "gamePool.h"
#include <sstream>

class	joinGame : public ISlotInterface {
 public:
  virtual void    onCall(Player *, std::string const &, void *, unsigned int, protocol::NetHeader *);
  bool	join(gamePool *instance, Player *player);
  void	createGame(gamePool *instance, Player *player);
};
std::string     inttostring(int nb);
#endif
